import sys
sys.path.append('..\\..')
from Djoser import *

test = 'PIL'

class MyApplication(DjApplication):
	def layout(self, window):
		window.title = 'Pyxel'
		
		window.label('Hello, Image')
		
		
		if test=='PIL':		
			im = window.image()
			im.image = 'out2.png'
		elif test=='image':
			im = window.image()
			im.image = 'out2.gif'
		elif test=='tk':		
			self.iim = PhotoImage(file='out2.gif')
			lb = window.label('')
			lb.basecontrol.config(image=self.iim )
		
		window.add_all()
		
m = MyApplication()
m.run()

